package com.example.carrierapp.bean.home;

public class BaseBean<T> {
    boolean success;
    T result;
    Object error;
    boolean unAuthorizedRequest;

    @Override
    public String toString() {
        return "BaseBean{" +
                "success=" + success +
                ", result=" + result +
                ", error='" + error + '\'' +
                ", unAuthorizedRequest=" + unAuthorizedRequest +
                '}';
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }

    public Object getError() {
        return error;
    }

    public void setError(Object error) {
        this.error = error;
    }

    public boolean isUnAuthorizedRequest() {
        return unAuthorizedRequest;
    }

    public void setUnAuthorizedRequest(boolean unAuthorizedRequest) {
        this.unAuthorizedRequest = unAuthorizedRequest;
    }
}
